var request = require('request');

// 扔5个男性漂流瓶
for (var i = 1; i <= 5; i++) {
	(function(i) {
		request.post({
			url: "http://127.0.0.1:3000",
			json: {
				"owner": "bottle" + i,
				"type": "male",
				"content": "content" + i
			}
		});
	})(i);
}

// 扔5个女性漂流瓶
setTimeout(function() {
	for (var j = 1; j <= 5; j++) {
		(function(i) {
			request.post({
				url: "http://127.0.0.1:3000",
				json: {
					"owner": "bottle" + j,
					"type": "female",
					"content": "content" + j
				}
			});
		})(i);
	}
}, 1000);




